//
//  CollectionViewCell.m
//  UI豆瓣2015到2016跨年作业
//
//  Created by LHY on 16/1/5.
//  Copyright © 2016年 Lanou 32 李昊宇. All rights reserved.
//

#import "CollectionViewCell.h"

@implementation CollectionViewCell

- (void)dealloc
{
    [_label release];
    [_imageView release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self Collection];
    }
    return self;
}

- (void)Collection {

    self.imageView = [[UIImageView alloc] init];
    [self.contentView addSubview:_imageView];
    [_imageView release];
    self.label = [[UILabel alloc] init];
    [self.contentView addSubview:_label];
    [_label release];
    
}




- (void)layoutSubviews {

    [super layoutSubviews];
    
    _imageView.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height - 50);
    _imageView.backgroundColor = [UIColor blackColor];
    
    _label.frame = CGRectMake(0, self.contentView.frame.size.height - 50, self.contentView.frame.size.height, 50);
    



}








@end
